package com.design.classroommanagement

import com.laughing.lib.base.HBaseFragment
import com.laughing.lib.utils.clickWithTrigger
import kotlinx.android.synthetic.main.fragment_add_course.view.*
import kotlinx.android.synthetic.main.top_nav.view.*


fun HBaseFragment<*, *>.setTitleClassRoom(text: String) {
    binding.root.nav.titleTv.text = text
}

fun HBaseFragment<*, *>.setBack() {
    binding.root.nav.backIv.clickWithTrigger{
        finish()
    }
}